package www.wxwnb.clerk.http;

import java.util.Calendar;
import java.util.Map;

import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.Field;
import retrofit2.http.FieldMap;
import retrofit2.http.FormUrlEncoded;
import retrofit2.http.Headers;
import retrofit2.http.POST;
import www.wxwnb.clerk.http.entity.EditBean;
import www.wxwnb.clerk.http.entity.EditDataBean;
import www.wxwnb.clerk.http.entity.MsgQueryBean;
import www.wxwnb.clerk.http.entity.ResultQueryBean;
import www.wxwnb.clerk.http.entity.ReviewDetailBean;

/**
 * Created by dingguanxu on 2017/9/11.
 * 请求网络接口
 */

public interface HttpService {

    //业绩查询
    @FormUrlEncoded
    @POST("resultsQuery")
    Call<ResultQueryBean> getResultQuery(@Field("jobNumber") String jobNumber, @Field("startingTime") String startingTime,
                                         @Field("endTime") String endTime, @Field("pageNum") String pageNum);

    //审核通知（消息推送）
    @FormUrlEncoded
    @POST("msgQuery")
    Call<MsgQueryBean> getMsgQuery(@Field("userId") String userId, @Field("pageNum") String pageNum);

    //查看开户详情：
    @FormUrlEncoded
    @POST("temChiefById")
    Call<ReviewDetailBean> getReviewDetails(@Field("id") String id);

    //编辑资料获取所有资料
    @FormUrlEncoded
    @POST("salesmanUserById")
    Call<EditDataBean> getEditData(@Field("id") String id);

    //编辑资料
    @POST("passwordEdit")
    Call<EditDataBean> sendEditData(@Body EditBean editBean);

}
